package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.BEAnjuanOld;
import com.ruoyi.system.mapper.BEAnjuanOldMapper;
import com.ruoyi.system.service.IBEAnjuanOldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 电子旧案卷Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-22
 */
@Service
public class BEAnjuanOldServiceImpl implements IBEAnjuanOldService 
{
    @Autowired
    private BEAnjuanOldMapper bEAnjuanOldMapper;

    /**
     * 查询电子旧案卷
     * 
     * @param id 电子旧案卷主键
     * @return 电子旧案卷
     */
    @Override
    public BEAnjuanOld selectBEAnjuanOldById(String id)
    {
        return bEAnjuanOldMapper.selectBEAnjuanOldById(id);
    }

    /**
     * 查询电子旧案卷列表
     * 
     * @param bEAnjuanOld 电子旧案卷
     * @return 电子旧案卷
     */
    @Override
    public List<BEAnjuanOld> selectBEAnjuanOldList(BEAnjuanOld bEAnjuanOld)
    {
        return bEAnjuanOldMapper.selectBEAnjuanOldList(bEAnjuanOld);
    }

    /**
     * 新增电子旧案卷
     * 
     * @param bEAnjuanOld 电子旧案卷
     * @return 结果
     */
    @Override
    public int insertBEAnjuanOld(BEAnjuanOld bEAnjuanOld)
    {
        return bEAnjuanOldMapper.insertBEAnjuanOld(bEAnjuanOld);
    }

    /**
     * 修改电子旧案卷
     * 
     * @param bEAnjuanOld 电子旧案卷
     * @return 结果
     */
    @Override
    public int updateBEAnjuanOld(BEAnjuanOld bEAnjuanOld)
    {
        return bEAnjuanOldMapper.updateBEAnjuanOld(bEAnjuanOld);
    }

    /**
     * 批量删除电子旧案卷
     * 
     * @param ids 需要删除的电子旧案卷主键
     * @return 结果
     */
    @Override
    public int deleteBEAnjuanOldByIds(String[] ids)
    {
        return bEAnjuanOldMapper.deleteBEAnjuanOldByIds(ids);
    }

    /**
     * 删除电子旧案卷信息
     * 
     * @param id 电子旧案卷主键
     * @return 结果
     */
    @Override
    public int deleteBEAnjuanOldById(String id)
    {
        return bEAnjuanOldMapper.deleteBEAnjuanOldById(id);
    }
}
